let ID = window.location.href.split('=')[1]

$.get(`http://192.168.5.120:8089/song/detail?ids=${ID}`, res => {
	// console.log(res.songs);
	$('.music-name').text(`${res.songs[0].name}`)
	$('.music-box').append(`
			<div class="music-needle">
				<img src="./img/needle-ip6.png" alt="" />
				<!-- 胶片 -->
				<div class="blackCircle">
					<img src="./img/blackCircle.png" alt="" />
					<div class="black-img"><img src="${res.songs[0].al.picUrl}" alt="" /></div>
				</div>
			</div>
		
		`)
	$(`.record-bg-bg`).css(`background-image`, `url(${res.songs[0].al.picUrl})`)
})

// 歌曲暂停播放切换
$('.play').click(() => {
	$('.pause').show()
	$('.play').hide()
	$('.blackCircle').addClass('film-animation')
	$('.blackCircle').removeClass('film-paused')

})
$('.pause').click(() => {
	$('.play').show()
	$('.pause').hide()
	$('.blackCircle').addClass('film-paused')

})